package cn.jilian.entity;

import java.util.List;
import java.util.Map;

import cn.jilian.common.config.SpringBeans;
import cn.jilian.meta.service.MetaService;

public class MEnum extends Meta {
	
	public static final String ELEMENT_META="elementMeta";
	
	public static final String DEFAULTS_VALUEFIELD="defaults.valueField";
	
	public static final String DEFAULTS_DISPLAYFIELD="defaults.displayField";
	
	public void loadData() {
		Long metaId=getMetaId();
		MetaService metaService=SpringBeans.getBean(MetaService.class);
		Meta meta=metaService.getMetaById(metaId);
		Long eleMetaId=((Number)meta.getAttr(ELEMENT_META)).longValue();
		Meta eleMeta=metaService.getMetaById(eleMetaId);
		
	}

	private List<Map<String,Object>> data;

	public List<Map<String, Object>> getData() {
		return data;
	}

	public void setData(List<Map<String, Object>> data) {
		this.data = data;
	}
	
	
}
